<table width="100%" >
    <tr class="heading_cat">
        <td colspan="2"><%=  @cur_category_name %>        
    </td>
    </tr>
    <% if !@cur_category_children.nil? %>
        <% for category in @cur_category_children %>
            <tr>
                <td>&nbsp;</td>
                <td><div class="i_b_text">Title:</div><div class="i_text" style="display:inline;"><%= link_to_remote( h(category.name),{:update=>"div_thumb",:url=>{:action => 'view_thumb', :id =>category},:before=>"show_loader('div_thumb')"},{:class=>"cat_name"})%></div><br/>
                    <div class="i_b_text">Description:</div><div class="i_text"><%= category.description %></div>
                </td>
            </tr>
        <% end %>
    <% end%>
    <% for image in @images -%>
    <tr>
        <td colspan="2"><div class="img_heading"><%= image.name%>&nbsp;<%= "(New)" if image.new%><div></td>
    </tr>
    <tr>
        <td valign="top"><%= image_tag(image.thumb_url, :size=>'100x100')%></td>
        <td width="100%" valign="top"><div class="i_b_text" >Author:</div><div class="i_text"style="display:inline;"><%= image.author%></div><br/>
            <div class="i_b_text">Brief description:</div><div class="i_text"><%= image.brief_descr %></div>
            <div><%= link_to_remote( image_tag("/images/gallery_view/button_details.gif"),{:update=>"div_full",:url=>{:action => 'view_image', :id =>image},:before=>"view_full_b(); show_loader('div_full');",:after=>"view_full_a()"},{:class=>"details"})%>
        </td>
    </tr>
    <% end -%>
    <tr>
        <td colspan="2"><center><%= pagination_links(@image_pages)%></center><%= image_tag "/images/spacer.gif",:size=>'1x1',:onload=>'hide_loader()'%></td>
    </tr>
</table>